<%= form_for messageboard, html: { class: 'thredded--form' } do |f| %>
  <ul class="thredded--form-list">
    <li>
      <%= f.label :name %>
      <%= f.text_field :name, required: true %>
    </li>
    <li>
      <%= f.label :description %>
      <%= f.text_field :description %>
    </li>
    <li>
      <%= f.label :messageboard_group_id %>
      <%= f.collection_select :messageboard_group_id, Thredded::MessageboardGroup.all, :id, :name,
                              include_blank: t('thredded.messageboard.form.no_group') %>
    </li>
    <li><%= f.submit @messageboard.persisted? ? t('thredded.messageboard.update') : t('thredded.messageboard.create'),
                     class: 'thredded--form--submit' %></li>
  </ul>
<% end %>
